﻿@model Project_2._2.ViewModels.Login_ViewModels
@{
    ViewBag.Title = "Đăng Nhập";
    Layout = "~/Views/Shared/_UserLayoutPage2.cshtml";
}

<div class="ContentLeft-child">
    <div class="ContentRight-child-head">Đăng Nhập</div>
    <div class="ContentRight-child-logo"></div>
    <div class="ContentRight-child-body Box_sp" >
        
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true );
            @Html.AntiForgeryToken();
        <table  style="padding:10px 0 15px 100px ; line-height:35px; ">
            @*<tr>
                <td></td>
                <td >
                    @if (!string.IsNullOrEmpty(ViewBag.SucessMessage))
                    {
                        <div style="color:red; font-weight:bold; font-size:14px">@ViewBag.SucessMessage</div>
                    } 
                </td>
            </tr>*@
            <tr>
                <td class="align-right">@Html.LabelFor(m=>m.TenDangNhap)</td>
                <td>
                    @Html.TextBoxFor(m => m.TenDangNhap, new { @class="Textbox"})
                    @Html.ValidationMessageFor(m => m.TenDangNhap)
                </td>
            </tr>
            <tr>
                <td class="align-right">@Html.LabelFor(m=>m.Password)</td>
                <td>
                    @Html.PasswordFor(m => m.Password, new { @class="Textbox"})
                    @Html.ValidationMessageFor(m => m.Password)
                </td>
            </tr>
            <tr>
                <td class="align-right">@Html.LabelFor(m=>m.captcha)</td>
                <td>
                    @Html.TextBoxFor(m=>m.captcha, new { @class="Textbox", @style="width:80px"})
                    <img ID="Img3" alt="Captcha image" src="../Captcha/Captcha"  style=" margin-bottom:-10px; height:29px;border-radius:4px;" />
                    @Html.ValidationMessage("Captcha")
                </td>
            </tr>
            <tr>
                <td class="align-right"></td>
                <td>
                    @Html.CheckBoxFor(m => m.RememberMe)  @Html.LabelFor(m=>m.RememberMe)<br />
                    @Html.ActionLink("Bạn quên mật khẩu ?", "ForgotPassword", "Person",null, new { @style =" margin-top:-25px"})
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" class="Button" value="Đăng Nhập" />
                </td>
            </tr>

        </table>
        }
    </div>
</div>
  
